package org.apache.ibatis.common.annotations;

import org.apache.ibatis.common.type.JdbcType;
import org.apache.ibatis.common.type.TypeHandler;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Name Result
 * @Description: [配置] RESULT 结果
 * @Version v1.0.0
 * @Author: lichao
 * @Date: 2024-05-09 15:05:05
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({})
public @interface Result {
    boolean id() default false;

    String column() default "";

    String property() default "";

    Class<?> javaType() default void.class;

    JdbcType jdbcType() default JdbcType.UNDEFINED;

    Class<? extends TypeHandler> typeHandler() default UnknownTypeHandler.class;

    One one() default @One;

    Many many() default @Many;
}
